﻿@inject GMS.NET.Web.Components.Service.Interface.System.IToolsService ToolsService

<Card Color="Color.Primary" IsCenter="true" IsShadow="true">
    <HeaderTemplate>
        <span class="fas fa-fw fa-database"></span> 系统数据恢复工具
    </HeaderTemplate>
    <BodyTemplate>
        <Button Text="全部恢复" IsBlock="true" IsAsync="true" Icon="fas  fa-fw fa-database" OnClick="@Fullrecovery" />
    </BodyTemplate>
</Card>

@code{
    private async Task Fullrecovery()
    {
        await ToolsService.FullRecovery();
    }
}